package com.ddlaw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ddlaw.entity.TLawyer;
import com.ddlaw.entity.TLawyerApplyCustom;
import com.ddlaw.entity.TLawyerDetailCustom;
import com.ddlaw.entity.TLawyerServiceType;
import com.ddlaw.entity.TProvince;
import com.ddlaw.entity.TStudentDetaiCustom;

public interface LawyerDao {
	
	List<TLawyerApplyCustom> getauditWaitLawyer();
	
	List<TLawyerDetailCustom> getLawyers();
	
	TLawyerApplyCustom getAuditWaitLawyerById(int applyId);
	
	TLawyerDetailCustom getLawyerDetail(int lawyerId);
	
	int addLawyer(TLawyerDetailCustom detail);
	
	int addAndGetId(TLawyer lawyer);
	
	int deleteById(int applyId);
	
	int deleteStuById(int applyId);
	
	int updateState(int state, int lawyerId);
	
	List<TLawyerServiceType> getServiceType();
	
	List<TLawyerDetailCustom> getSearchLawyer(@Param("serviceType") int serviceType,@Param("begin") int begin,@Param("workYears") int workYears,@Param("region") int region);
	
	List<TProvince> getProvince();
	
	int updateLawyer(TLawyerDetailCustom detailCustom);
	
	int getContractsById(int contractId);
	
	List<TStudentDetaiCustom> getStudentApply();
	
	TStudentDetaiCustom getStuById(int applyId);
	
	int addStuLawyer(TStudentDetaiCustom student);
	
	List<TStudentDetaiCustom> getStus();
	
	List<TStudentDetaiCustom> getSearchStu(@Param("serviceType") int serviceType,@Param("begin") int begin,@Param("workYears") int workYears,@Param("region") int region);
	
	TStudentDetaiCustom getStuDetail(int lawyerId);
	
	int updateStu(TStudentDetaiCustom stu);
	
}
